<?php
error_reporting();
/**
 * fetch the page definition
 */
$page_definition = '.' . '/' . basename('include') . '/' . 'page_definitions.php';
if(file_exists($page_definition)){
	require_once($page_definition);
}
else {
	die("'$page_definition' does not exists!");
}
/**
 * fetch the page definitions
 */
$database_definitions = DOCUMENT_ROOT . '/' . basename('include') . '/' . 'database_definitions.php';
if(file_exists($database_definitions)){
	require_once($database_definitions);
}
else {
	die("'$database_definitions' does not exists");
}
/**
 * fetch the access level definitions
 */
$access_level_definitions = DOCUMENT_ROOT . '/' . basename('include') . '/' . 'access_level_definitions.php';
if(file_exists($page_definition)){
	require_once($access_level_definitions);
}
else {
	die("'$access_level_definitions' does not exists!");
}
/**
 * fetch the router file
 */
$router = DOCUMENT_ROOT . '/' . basename('core') . '/' . 'router.php';
if(file_exists($router)){
	require_once "$router";
}
else {
	die("'$router' does not exists!");
}